public class TestDemo {
    private int age;
    private String name;
    private static String javaClass;

    {
        this.age=18;
        this.name="wzj";
        System.out.println("实例代码块！");
    }

    static {
        javaClass="105java";
        System.out.println("静态代码块！");
    }
    public TestDemo(){
        System.out.println("构造方法！");
    }
    public static void main(String[] args) {
        TestDemo testDemo=new TestDemo();
        System.out.println("================");
        TestDemo testDemo1=new TestDemo();
    }
}
